package com.ssl.mall.product.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssl.mall.product.entity.ProductAttrValue;
import com.ssl.mall.product.feign.CouponFeignService;
import com.ssl.mall.product.mapper.ProductAttrValueMapper;
import com.ssl.mall.product.service.IProductAttrValueService;

/**
 * <p>
 * spu属性值 服务实现类
 * </p>
 *
 * @author ssl
 * @since 2021-04-25
 */
@Service
public class ProductAttrValueServiceImpl extends ServiceImpl<ProductAttrValueMapper, ProductAttrValue> implements IProductAttrValueService {


	@Autowired
	private CouponFeignService couponFeignService;

	/**
	 * 远程获取所有优惠卷列表
	 */
	@Override
	public Map<String, Object> couponlist() {
		Map<String, Object> data = new HashMap<String, Object>();
		data.put("data",couponFeignService.list().get("data"));
		return data;
	}
	
	


}
